package com.shawn.model.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @author shawn
 * @date 2022年 12月 19日 17:40
 */
@Data
public class LocalTotal implements Serializable {
    private String title;
    private Integer amount;

    public static LocalTotal init(String title){
        LocalTotal localTotal = new LocalTotal();
        localTotal.setTitle(title);
        localTotal.setAmount(0);
        return localTotal;
    }
}
